# coding:utf-8
# name ：YuFuXiao
# date : 2018-9-XX
from wtforms import form,StringField,IntegerField
from wtforms.validators import Length,NumberRange
class SearchFrom(form.Form):
    '''
    q:至少一個字符
    page:正整数
    '''
    q = StringField(validators=[Length(1,64)])
    page = IntegerField(validators=[NumberRange(1)],default=1)